package com.lwei.tallybook.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lwei.tallybook.base.domain.base.BaseDomain;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 账本实体
 * @author sks.lwei
 */
@Getter
@Setter
@TableName("client_account_book")
public class AccountBook extends BaseDomain<AccountBook> {

    /**
     * 消费类型
     */
    @TableField("consume_type")
    private String consumeType;
    /**
     * 消费名称
     */
    @TableField("consume_name")
    private String consumeName;
    /**
     * 价格
     */
    @TableField("consume_price")
    private Double consumePrice;
    /**
     * 消费时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("consume_time")
    private Date consumeTime;
    /**
     * 消费所有者
     */
    @TableField("consume_owner")
    private String consumeOwner;
    /**
     * 是否关闭
     */
    private Boolean close;
    /**
     * 目前用于接受前端传值
     * 消费参与者
     */
    @TableField(exist = false)
    private String[] consumeParticipator;

}
